package com.wk.code.wkserver.service;

import com.wk.code.wkserver.response.admin.AdminHomeChartResponse;
import com.wk.code.wkserver.response.admin.AdminHomeMoneyResponse;
import com.wk.code.wkserver.response.admin.AdminHomeResponse;
import com.wk.code.wkserver.response.admin.AdminUserRatioResponse;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wq
 * @since 2021-08-15
 */
public interface HomeStatisticsService {

    /**
     * 后台首页统计
     *
     * @return AdminHomeResponse
     */
    AdminHomeResponse homeStatistics();


    /**
     * 最近七天的图表
     *
     * @param type 1 注册量 2 访问量
     * @return List<AdminHomeChartResponse>
     */
    AdminHomeChartResponse recentlyChart(Integer type);

    /**
     * 用户统计
     *
     * @return AdminUserRatioResponse
     */
    AdminUserRatioResponse userRatio();


    /**
     * 后台交易统计
     *
     * @return AdminHomeMoneyResponse
     */
    AdminHomeMoneyResponse tradeRatio();


}
